//
//  SecurityStatusObject.h
//  LocomotiveGuards
//
//  Created by XYS on 15/11/17.
//  Copyright (c) 2015年 REDOOR. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SecurityHearder.h"

@protocol SecurityStatusObject <NSObject>

- (void) setAlarmConfigView:( AlarmState ) _state;

- (void) setSecurityAbnormalStatusView:( SecurityState ) _state
                SecurityAbnormalStatus:(SecurityAbnormalStatus) _SecurityAbnormalStatus;

- (void) setSecurityLowPowerStatusView:( SecurityState ) _state
                SecurityLowPowerStatus:(SecurityLowPowerStatus) _SecurityLowPowerStatus;

- (void) setSecurityCutStatusView:( SecurityState ) _state
                SecurityCutStatus:(SecurityCutStatus) _SecurityCutStatus;

- (void) setSecurityElecFenceStatusView:( SecurityState ) _state
                SecurityElecFenceStatus:(SecurityElecFenceStatus) _SecurityElecFenceStatus;

- (void)clearSecurityStatusView;

@end

@interface SecurityStatusObject : NSObject

@property (nonatomic,assign) AlarmState currentAlarmStatus;          //当前一键防护状态
@property (nonatomic,assign) SecurityAbnormalStatus abNormalStatus ; //异常状态
@property (nonatomic,assign) SecurityLowPowerStatus lowPowerStatus;  //低电状态
@property (nonatomic,assign) SecurityCutStatus cutStatus;            //剪掉报警状态
@property (nonatomic,assign) SecurityElecFenceStatus fenceStatus;    //电子围栏状态

@property (nonatomic,weak) id<SecurityStatusObject> delegate;        //使用weak属性，防止循环引用

- (void) getAlarmConfig;
- (void) setAlarmConfig:(AlarmState) _state;
- (void) getAlarmStatus;
- (void) getSecurityAbnormalStatus;
- (void) getSecurityLowPowerStatus;
- (void) getSecurityCutStatus;
- (void) getSecurityElecFenceStatus;

@end
